<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>分销佣金比例设置
		-分销管理-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
	<script>
	$(function(){


		$("#btn_save").click(function(){
			$("form").submit();
		});
	})
	</script>
</head>
<body>
	<div class="wrap">
		<!--star left-->
		<div class="column">
			<{include file="left_menu.html"}>
		</div>
		<div id="ContMianBox">
			<div class="sub-colum">
			    <div class="tit">营销中心</div>
			    <ul>
						<{foreach from=$left_menu_min.list item=item}>
							<li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
					 <{/foreach}>

			    </ul>
			</div>
			<!--end子栏目-->
			<!--end left-->
			<div class="container narrow">
			    <!--star conter-->
			    <div class="cetContent">
						<div class="tit p-lr20">
							<span><a href="/marketing_fx">分销记录</a></span>
							<span ><a href="/marketing_fx/share">分享记录</a></span>
							<span class="curr"><a href="/marketing_fx/setting">分销设置</a></span>
						</div>
					<!--star内容区域-->
					<div class="mainScroll">
					    <div class="mainContainer line-all">

					        <div class="tabMainCont">

					            <!--star 编辑基本信息-->
					            <div class="tabItem step-02">

									<form action="/marketing_fx/setting" method="post" class="layui-form">
										<div class="layui-form-item">
									    <label class="layui-form-label">一级分销抽成比例：</label>
									    <div class="layui-input-inline">
									      <input type="number" lay-verify="number" name="one_ratio" value="<{if isset($setting)}><{$setting['one_ratio']}><{/if}>" maxlenght="8" required lay-verify="required" placeholder="抽成比例" autocomplete="off" class="layui-input">
											</div>
									    <div class="layui-form-mid layui-word-aux">单位%</div>
									  </div>
										<div class="layui-form-item">
											<label class="layui-form-label">二级分销抽成比例：</label>
											<div class="layui-input-inline">
												<input type="number" lay-verify="number" name="two_ratio" value="<{if isset($setting)}><{$setting['two_ratio']}><{/if}>" maxlenght="8" required lay-verify="required" placeholder="抽成比例" autocomplete="off" class="layui-input">
											</div>
											<div class="layui-form-mid layui-word-aux">单位%</div>
										</div>
										<div class="layui-form-item">
									    <label class="layui-form-label">三级分销抽成比例：</label>
									    <div class="layui-input-inline">
									      <input type="number" lay-verify="number" name="three_ratio" value="<{if isset($setting)}><{$setting['three_ratio']}><{/if}>" maxlenght="8" required lay-verify="required" placeholder="抽成比例" autocomplete="off" class="layui-input">
											</div>
									    <div class="layui-form-mid layui-word-aux">单位%</div>
									  </div>

									<div class="layui-form-item">
									    <label class="layui-form-label">是否加密二,三级同学手机号</label>
									    <div class="layui-input-block">
									      <input type="checkbox" name="is_display_phone" value="1" title="加密" <{if (isset($setting)&&$setting['is_display_phone']==1) }> checked=""<{/if}>>
									    </div>
									  </div>


									<div class="layui-form-item">
									 <div class="layui-input-block">
										 <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
										 <button type="reset" class="layui-btn layui-btn-primary">取消</button>
									 </div>
									</div>


					            </form>
					            </div>
					            <!--end 编辑基本信息-->

					        </div>


					    </div>
					</div>
					</div>
					<!--end内容区域-->

		    <!--end conter-->
		</div>


	</div>
</div>
<{include file="footer.html"}>
<script>
	layui.use(['form','laydate','jquery'], function(){
		var laydate = layui.laydate;
		var form = layui.form(),$ = layui.jquery;

		var start = {
			min: laydate.now(-30)
			,max: laydate.now(+365)
			,istoday: false
			,choose: function(datas){
				end.min = datas; //开始日选好后，重置结束日的最小日期
				end.start = datas //将结束日的初始值设定为开始日
			}
		};

		var end = {
			min: laydate.now()
			,max: laydate.now(+365)
			,istoday: false
			,choose: function(datas){
				start.max = datas; //结束日选好后，重置开始日的最大日期
			}
		};

		document.getElementById('LAY_demorange_s').onclick = function(){
			start.elem = this;
			laydate(start);
		}
		document.getElementById('LAY_demorange_e').onclick = function(){
			end.elem = this
			laydate(end);
		}


	});
</script>

</body>
</html>
